package com.baizhi.service.impl;

import com.baizhi.entity.Item;
import com.baizhi.mapper.ItemMapper;
import com.baizhi.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class ItemServiceImpl implements ItemService {
    @Autowired
    private ItemMapper mapper;

    @Override
    public void addItem(Item item) {
        mapper.addItem(item);
    }

    @Override
    public Item selectAll(Integer id) {
        return mapper.selectAll(id);
    }
}
